<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>angular</title>
    <script src="lib/angular/angular.min.js"></script>
</head>
<body>
<div ng-app="note" ng-controller="note_manager">

<h2>我的笔记</h2>

<p><textarea ng-model="message" cols="40" rows="10"></textarea></p>

<p>
<button ng-click="save()">保存</button>
<button ng-click="clear()">清除</button>
</p>

<p>剩下的字符数：<span ng-bind="leave()"></span></p>

</div>

<script src="js/note.js"></script>
</body>
</html>
